﻿@model KnowledgeCommunity.Model.Slider
@{
    ViewBag.Title = "创建Slider";
    Layout = "~/Views/Shared/_Layout_zone.cshtml";
}

<div class="contentcontainer">
    <div class="headings">
        <h2>添加Slider</h2>
    </div>
    <div class="contentbox">
        @using (Html.BeginForm("Create", "Slider", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            @Html.ValidationSummary(true)
                
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <th width="200px">标题</th>
                    <td>
                        @Html.TextBoxFor(model => model.Title, new { @class = "myInput_text" })
                    </td>
                </tr>
                <tr>
                    <th>摘要</th>
                    <td>
                        @Html.TextBoxFor(model => model.Content, new { @class = "myInput_area_slider" })
                    </td>
                </tr>
                <tr>
                    <th>
                        Slider图片(960 * 380)
                    </th>
                    <td>
                        <input type="file" name="ImgUrl" id="ImgUrl" />
                    </td>
                </tr>
                <tr>
                    <th>链接地址</th>
                    <td>
                        @Html.TextBoxFor(model => model.LinkTo, new { @class = "myInput_text" })
                        <p>例如："http://www.Knowledge.com/Topic/id"</p>
                    </td>
                </tr>
                <tr>
                    <th></th>
                    <th>
                        <input type="submit" class="btn" id="Submit" value="创建Slider>>" title="创建" />
                        <input type="button" class="myInput_Buttom" onclick="history.go(-1)" id="reset" value="取消" title="取消" />
                    </th>
                </tr>
                </table>
                
        }
        <div style="clear: both;"></div>
    </div>
</div>

<script type="text/javascript">
    CKEDITOR.replace('Content');
</script>




  
